# Contributor: Robin Candau <robincandau@protonmail.com>
# Maintainer: Robin Candau <robincandau@protonmail.com>
pkgname=notification-daemon
pkgver=3.20.0
pkgrel=0
pkgdesc="Server implementation of the freedesktop.org desktop notification specification"
url="https://wiki.gnome.org/Attic/NotificationDaemon"
arch="all"
license="GPL-2.0-or-later"
makedepends="intltool gtk+3.0-dev"
source="https://download.gnome.org/sources/notification-daemon/${pkgver%.*}/notification-daemon-$pkgver.tar.xz
	remove-notifications-limit.patch
	"
prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/notification-daemon-1.0 \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d9311c71a2915cb6e55bd1408e60b4d7b7fc24114410b8bd8cb358fe86c100198567099843b967f7e01ca03c91afe3f3980fb30b7f2c138bdab949e0e196a0f8  notification-daemon-3.20.0.tar.xz
c80454a874ed27be7793f8a71af719f9462d4785127d129414f7af2b04ad00a06ce29ded8ebe36c42ca33a0cd16113453ad73a3b7eb93cf9cae49a9d15505488  remove-notifications-limit.patch
"
